﻿<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
	

	

	<DataTemplate x:Key="TreeViewDataTemplate">
		<StackPanel Orientation="Horizontal">
			<Image Source="{Binding Converter={StaticResource CommandToIconConverter} }" />
			<TextBlock Margin="5,0,0,0">
				<Hyperlink Command="{Binding Command}" CommandParameter="{Binding DisplayName}">
					<TextBlock Text="{Binding DisplayName}" />
				</Hyperlink>
			</TextBlock>
		</StackPanel>
	</DataTemplate>
	<HierarchicalDataTemplate  x:Key="TreeViewHierarchicalDataTemplate" ItemsSource="{Binding ViewModelCommandChilds}">
		<StackPanel Orientation="Horizontal">
			<Image Source="{Binding Converter={StaticResource CommandToIconConverter} }" ></Image>
			<Label Content="{Binding DisplayName}"></Label>
		</StackPanel>
	</HierarchicalDataTemplate>
    
    <Style x:Key="ThumbStyle1" TargetType="{x:Type Thumb}">
    	<Setter Property="Stylus.IsPressAndHoldEnabled" Value="false"/>
    	<Setter Property="Background">
    		<Setter.Value>
    			<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
    				<GradientStop Color="#FF11FFE4" Offset="0"/>
    				<GradientStop Color="#FFACB4F7" Offset="1"/>
    			</LinearGradientBrush>
    		</Setter.Value>
    	</Setter>
    	<Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}"/>
    	<Setter Property="Template">
    		<Setter.Value>
    			<ControlTemplate TargetType="{x:Type Thumb}">
    				<Border BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Background="{TemplateBinding Background}">
    					
    				</Border>
    			</ControlTemplate>
    		</Setter.Value>
    	</Setter>
    </Style>

    <ResourceDictionary.MergedDictionaries>
        <ResourceDictionary Source="OMANE_Base.xaml" />
        <ResourceDictionary Source="OMANE_Brushes.xaml" />
    </ResourceDictionary.MergedDictionaries>
</ResourceDictionary>
